package com.example.springboot.controller;

import com.example.springboot.result.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController extends JsonResult {


    @RequestMapping("/one")
    public Object demo1 (){
        System.err.println("这里");
        return success("成功");
    }


    @RequestMapping("/two")
    public Object demo2 (){
        System.err.println("这里");
        return success("成功");
    }
}
